<%@ Page Language="VB" MasterPageFile="~/MasterPages/PopUp.master" AutoEventWireup="false" CodeFile="DBInstall.aspx.vb" Inherits="Install_DBInstall" title="Install Database" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Assembly="AjaxControls" Namespace="AjaxControls" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="uxContentPlaceHolder1" Runat="Server">

<table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
        <td>
            <a href="default.aspx"><asp:image id="uxPageTitleImage" runat="server" skinid="pagetitle" /></a>
        </td>
    </tr>
    <tr>
        <td class="TITLECELL">&nbsp;</td>
    </tr>    
</table>   
        
<table width="100%">
    <tr>
        <td style="white-space: normal;">
            <container:templatedcontainer id="uxGeneralInfo" runat="server" allowexpandcollapse="false">
                <titletemplate>
                    <asp:label id="uxGeneralInfoLabel" runat="server" text="<%$ Resources:Resource, DBSetupRequired %>"></asp:label>
                </titletemplate>
                
                <bodytemplate>
                    <table>
                        <tr>
                            <td>
                                <asp:literal id="uxInstallStepsLiteral" runat="server" text="<%$ Resources:Resource, InstallSteps %>"></asp:literal>                                                             
                            </td>
                        </tr>
                    </table>                
                </bodytemplate>
            </container:templatedcontainer>
        </td>
    </tr>
    <tr>
        <td style="white-space: normal;">
            <table width="100%">
                <tr>
                    <td valign="top" style="white-space: normal;">
                        <container:templatedcontainer id="uxTemplate" runat="server" AllowExpandCollapse="true">

                            <TitleTemplate>
                                <asp:Literal ID="uxDBInstallLiteral" runat="server" Text="<%$ Resources:Resource, DBInstallation %>"></asp:Literal>
                            </TitleTemplate>

                            <BodyTemplate>
                                <asp:UpdatePanel id="UpdatePanel2" runat="server" updatemode="Always" rendermode="Inline">
                                    <ContentTemplate>                            
                                        <table width="100%">
                                            <div>
                                                <asp:label id="uxStatusLabel" runat="server" visible="false"></asp:label>                                                    
                                            </div> 
                                            <tr>
                                                <td class="TDNAME">
                                                    <asp:Label ID="Label1" runat="server" Text="<%$ Resources:Resource, DBProviderType %>"></asp:Label>
                                                </td>
                                                <td class="TDVALUE">
                                                    <asp:radiobuttonlist id="uxProviderRadioButtonList" runat="server">
                                                        <asp:listitem text="MS SQLServer 2005" value="SqlServer" selected="true"></asp:listitem>
                                                        <asp:listitem text="MySQL" value="MySQL"></asp:listitem>
                                                    </asp:radiobuttonlist>
                                                </td>
                                            </tr>                                        
                                            <tr>
                                                <td class="TDNAME">
                                                    <asp:Label ID="uxDatabaseNameLabel" runat="server" Text="<%$ Resources:Resource, DBName %>"></asp:Label>
                                                </td>
                                                <td class="TDVALUE">
                                                    <asp:TextBox ID="uxDatabaseNameTextBox" runat="server"></asp:TextBox>
                                                    <asp:requiredfieldvalidator id="uxSummaryRequiredFieldValidator" enableclientscript="True" runat="server" forecolor="White" errormessage="<%$ Resources:Resource, DBNameRequired %>" controltovalidate="uxDatabaseNameTextBox" setfocusonerror="true"><asp:image id="Image3" runat="server" skinid="errorimage"/></asp:requiredfieldvalidator>
                                                </td>                                        
                                            </tr>
                                            <tr>
                                                <td class="TDNAME">
                                                    <asp:Label ID="uxDatabaseInstanceLabel" runat="server" Text="<%$ Resources:Resource, DBInstance %>"></asp:Label>
                                                </td>
                                                <td class="TDVALUE">
                                                    <asp:TextBox ID="uxDatabaseInstanceTextBox" runat="server"></asp:TextBox>
                                                    <asp:requiredfieldvalidator id="Requiredfieldvalidator1" enableclientscript="True" runat="server" forecolor="White" errormessage="<%$ Resources:Resource, DBInstanceRequired %>" controltovalidate="uxDatabaseInstanceTextBox" setfocusonerror="true"><asp:image id="Image1" runat="server" skinid="errorimage"/></asp:requiredfieldvalidator>
                                                </td>                                        
                                            </tr>
                                            <tr>
                                                <td class="TDNAME">
                                                    <asp:Label ID="uxDatabaseOwnerLabel" runat="server" Text="<%$ Resources:Resource, DBOwner %>"></asp:Label>
                                                </td>
                                                <td class="TDVALUE">
                                                    <asp:TextBox ID="uxDatabaseOwnerTextBox" runat="server"></asp:TextBox>
                                                    <asp:requiredfieldvalidator id="Requiredfieldvalidator2" enableclientscript="True" runat="server" forecolor="White" errormessage="<%$ Resources:Resource, DBOwnerRequired %>" controltovalidate="uxDatabaseOwnerTextBox" setfocusonerror="true"><asp:image id="Image2" runat="server" skinid="errorimage"/></asp:requiredfieldvalidator>
                                                </td>                                        
                                            </tr>    
                                            <tr>
                                                <td class="TDNAME">
                                                    <asp:Label ID="uxDatabaseOwnerPasswordLabel" runat="server" Text="<%$ Resources:Resource, DBOwnerPassword %>"></asp:Label>
                                                </td>
                                                <td class="TDVALUE">
                                                    <asp:TextBox ID="uxDatabaseOwnerPasswordTextBox" runat="server"></asp:TextBox><br /><asp:TextBox ID="uxDatabaseOwnerPasswordConfirmTextBox" runat="server"></asp:TextBox>
                                                    <asp:requiredfieldvalidator id="Requiredfieldvalidator3" enableclientscript="True" runat="server" forecolor="White" errormessage="<%$ Resources:Resource, DBOwnerPasswordRequired %>" controltovalidate="uxDatabaseOwnerPasswordTextBox" setfocusonerror="true"><asp:image id="Image4" runat="server" skinid="errorimage"/></asp:requiredfieldvalidator>
                                                    <asp:comparevalidator id="uxPasswordCompareValidator" runat="server" controltovalidate="uxDatabaseOwnerPasswordTextBox" controltocompare="uxDatabaseOwnerPasswordConfirmTextBox" errormessage="<%$ Resources:Resource, DBOwnerPasswordMisMatch %>"><asp:image id="Image5" runat="server" skinid="errorimage"/></asp:comparevalidator>
                                                </td>                                        
                                            </tr>
                                            <tr>
                                                <td class="TDNAME">
                                                    <asp:Label ID="uxConnectionStringLabel" runat="server" Text="<%$ Resources:Resource, DBConnectionString %>"></asp:Label>
                                                </td>
                                                <td class="TDVALUE">
                                                    <asp:TextBox ID="uxConnectionStringTextBox" runat="server" width="98%" readonly="true" enabled="false"></asp:TextBox>
                                                    <asp:requiredfieldvalidator id="Requiredfieldvalidator5" enableclientscript="True" runat="server" forecolor="White" errormessage="Please enter a database connection string." controltovalidate="uxConnectionStringTextBox" setfocusonerror="true"><asp:image id="Image6" runat="server" skinid="errorimage"/></asp:requiredfieldvalidator>                                
                                                </td>                                        
                                            </tr>                                                                                                                                                                                                                                                                       
                                        </table>	
                                    </ContentTemplate>
                                </asp:UpdatePanel>                                                     
                            </BodyTemplate>   
                           
                        </container:templatedcontainer>
                    </td>
                    <td valign="top">
                        <div>
                            <asp:ModalUpdateProgress ID="uxModalUpdateProgress" runat="server" DisplayAfter="0" BackgroundCssClass="MODALBACKGROUND" associatedupdatepanelid="UpdatePanel1">
                                <ProgressTemplate>
                                    <asp:Panel runat="server" ID="uxUpdateProgressPanel" cssclass="MODALPOPUP" Width="400px" Height="200px">
                                        <div style="text-align:center;width:400px;height:200px"><br /><br /><br /><br />
                                            <asp:image id="uxProcessingImage" runat="server" skinid="Processing"/><asp:image id="uxSpacerImage" runat="server" skinid="Spacer" width="1px"/><asp:label id="uxSaveDataLabel" runat="server" font-bold="true" text="<%$ Resources:Resource, Working %>"></asp:label>
                                        </div>
                                    </asp:Panel>
                                </ProgressTemplate>
                            </asp:ModalUpdateProgress>                        
                        </div>
                        <div>
                            <asp:UpdatePanel id="UpdatePanel1" runat="server">
                            <ContentTemplate>
                                <asp:button id="uxSaveButton" 
                                cssclass="BUTTON"
                                Text='<%$ Resources:Resource, Save %>'
                                onmouseover="this.className='BUTTONOVER'"
                                onmouseout="this.className='BUTTONOUT'"  
                                runat="server" /><br />                                               
                                <asp:button id="uxTestConnectionButton" 
                                cssclass="BUTTON"
                                Text='<%$ Resources:Resource, TestConn %>'
                                onmouseover="this.className='BUTTONOVER'"
                                onmouseout="this.className='BUTTONOUT'"  
                                runat="server" /><br />                                 
                                <asp:button id="uxInstallDatabaseButton" 
                                cssclass="BUTTON"
                                Text='<%$ Resources:Resource, InstallDB %>'
                                onmouseover="this.className='BUTTONOVER'"
                                onmouseout="this.className='BUTTONOUT'"  
                                runat="server" /><br />                                                   
                                <asp:button id="uxResetButton" 
                                cssclass="BUTTON"
                                Text="<%$ Resources:Resource, Reset %>"
                                onmouseover="this.className='BUTTONOVER'"
                                onmouseout="this.className='BUTTONOUT'"  
                                runat="server" /><br />
                            </ContentTemplate>
                            </asp:UpdatePanel>             
                        </div>
                    </td>        
                </tr>
            </table>        
        </td>
    </tr>
</table>

</asp:Content>


